//
//  ALMarcos.h
//  FanBei
//
//  Created by 哀木涕 on 2016/12/27.
//  Copyright © 2016年 chuxiangkeji. All rights reserved.
//

#ifndef ALMarcos_h
#define ALMarcos_h


//各种key
#define APPKEY @"123"
#define APPLEID  @"1136587444"
#define TaoKePid @"mm_33338087_0_0"
#define TaoKeUnionId @""
#define TaoKeSubPid @""
#define My_isv_code @"com.91ala.wwww"
#define UmengAppkey @"57b6a19c67e58ea7b1001abd"
#define QQKey @"wXa88inD7g2kq58Z"
#define QQAppId @"1105556082"
#define WeChatAppID @"wx62c5275c4ac5467a"
#define WeChatAppSecret @"2be67c68338f1d75f234ccd03b13641a"
#define SinaAppKey @"1342223895"
#define SinaAppSecret @"74f19620558ed85b03dc2c5986dc08f5"
#define JPushKey @"713d3b209185a3dbd069dcce"

//尺寸相关
#define XYRatio XYScreenHeight / 667
#define DefaultCellHeight MAX(45, 45 * XYRatio)
#define XYScreenWidth ([[UIScreen mainScreen]bounds].size.width)
#define XYScreenHeight ([[UIScreen mainScreen]bounds].size.height)
#define XYScreenBounds ([[UIScreen mainScreen] bounds])
#define XYScreenScale  ([[UIScreen mainScreen] scale])


//颜色相关
#define RGBColor(r, g, b, a)       [UIColor colorWithR:r G:g B:b A:a]
#define HEXColor(str,a)    [UIColor colorFromHexString:str Alpha:a]
#define MainColor HEXColor(@"#fb9544",1) 
#define GroupTableBackColour RGBColor(239, 239, 244, 1)

//系统相关
#define UserDefaultsValueFor(str) [[NSUserDefaults standardUserDefaults] valueForKey:str]
#define UserDefaultsSetvalue(value,key) [[NSUserDefaults standardUserDefaults] setValue:value forKey:key]
#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue]   //ios系统版本
#define APP_VERSION [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"] //app版本


//URL相关
#define MainUrl @"http://www.91ala.com/?"



//SB  name相关
#define SB_home   @"Home"
#define SB_rebate @"Rebate"
#define SB_search @"Search"
#define SB_Stages @"Stages"
#define SB_mine   @"Mine"
#endif /* ALMarcos_h */
